package com.xiyu.service.enums.elder.register;

import com.xiyu.service.enums.common.IntArrayValuable;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;

/**
 * 外出登记状态
 */
@Getter
@AllArgsConstructor
public enum ElderGoOutStatusEnum implements IntArrayValuable {

    /**
     * 未外出
     */
    NOT_GO_OUT(1, "未外出"),
    /**
     * 已外出
     */
    GO_OUT(2, "已外出"),
    /**
     * 已返回
     */
    RETURN(3, "已返回"),
    /**
     * 已取消
     */
    CANCEL(4, "已取消");

    private final Integer value;

    private final String label;

    public static final int[] VALUES = Arrays.stream(values()).mapToInt(ElderGoOutStatusEnum::getValue).toArray();

    @Override
    public int[] getValues() { return VALUES;}

    public static final String[] LABELS = Arrays.stream(values()).map(ElderGoOutStatusEnum::getLabel).toArray(String[]::new);

    @Override
    public String[] getLabels() { return LABELS; }
}
